package p.ithorns.example.statemachine.trans;

import com.alibaba.cola.statemachine.Condition;
import lombok.*;

/**
 * StateAction
 *
 * @author Ht.L
 * @date 2023-09-09 21:14
 * @since 1.0.0
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Transition<C> {

    private FlowState from;

    private FlowState to;

    private FlowEvent on;

    private Condition<C> when;

    @Builder.Default
    private boolean external = true;

}